package org.xfy.org.mapper;

import org.xfy.org.domain.Logininfo;
import org.xfy.base.mapper.BaseMapper;
import org.xfy.org.domain.dto.LoginDto;
import org.xfy.sys.domain.Menu;
import org.xfy.sys.domain.Permission;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xfy
 * @since 2023-10-31
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo findOneByusrname(LoginDto loginDto);

    Logininfo findOneByname(String usernmae);

    List<Menu> findMuesBylogininfoId(Long id);

    List<String> findPermissionBylogininfoId(Long id);
}
